package com.siwei.mes.controller.erp;

import com.siwei.mes.common.result.ApiResult;
import com.siwei.mes.common.result.Json;
import com.siwei.mes.service.erp.PhbhistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ERP配合比历史记录相关
 *
 * @author linzi
 * @since 2024-09-09 17:38:16
 */
@Api(value = "")
@RestController
@RequestMapping("erpPhbhistory")
public class ErpPhbhistoryController {
    @Resource
    private PhbhistoryService phbhistoryService;

    @ApiOperation(value = "根据任务单号查询配合比修改记录")
    @GetMapping("selectByFrwd")
    public Json selectByFrwd(@RequestParam("frwd") Integer frwd) {
        return Json.succ().data(ApiResult.addList(phbhistoryService.selectByRwdh(frwd)));
    }

}
